# ex_huanglx3
# 2021/12/22 14:07
# PyCharm
# 加密登录

import requests
from public.public_methods import sign_body

def v3_login(session,base_url,username="test",pwd="123456"):
    url = "{}/api/v1/login".format(base_url)
    body = {
        "username":username,
        "password":pwd,
        "sign":""
    }
    res = session.post(url,json=sign_body(body))
    return res

if __name__ == '__main__':
    session = requests.Session()
    base_url = "http://49.235.92.12:7005"
    print(v3_login(session,base_url).text)
